package auction.securechannel;

import java.security.PrivateKey;
import java.security.PublicKey;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;

public interface Channel {
	
	public void send(byte[] message) ;
	public byte[] receive() ;
	
	public PublicKey getPublicKey() ;
	public void setPublicKey(PublicKey publicKey) ;
	public  PrivateKey getPrivateKey() ;
	public  void setPrivateKey(PrivateKey privateKey) ;
	
	public  SecretKey getSecretKey();
	public  void setSecretKey(SecretKey secretKey);
	public  IvParameterSpec getIvParameter();
	public  void setIvParameter(IvParameterSpec ivParameter);
	public void closeSocket();
}
